package com.ccc.mapper;

import com.ccc.entity.StuLeave;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author ccc
 * @since 2022-01-02
 */
public interface StuLeaveMapper extends BaseMapper<StuLeave> {

    List<StuLeave> leaveList();

    List<String> leaveListById(String username);

    void addLeave(String username, String reason, LocalDate dateFrom, LocalDate dateTo);
}
